package com.itheima.demo03.Filter;

import java.io.File;

public class Demo01Filter {
    public static void main(String[] args) {
        File file = new File("D:\\Java-Code\\day08_FileAndRecursion\\abc");
        getAllFiles(file);
    }

    public static void getAllFiles(File dir) {
//        System.out.println(dir);
        File[] files = dir.listFiles(new FileFilterImpl());
        for (File f : files) {
            if (f.isDirectory()) {
                getAllFiles(f);
            } else {
                System.out.println(f);
            }
        }
    }
}
